import request from '@/utils/request'

// 查询-32中国天然产物化学成分库列表
export function listTdmChina(query) {
  return request({
    url: '/tdm/TdmChina/list',
    method: 'get',
    params: query
  })
}

// 查询-32中国天然产物化学成分库详细
export function getTdmChina(id) {
  return request({
    url: '/tdm/TdmChina/' + id,
    method: 'get'
  })
}

// 新增-32中国天然产物化学成分库
export function addTdmChina(data) {
  return request({
    url: '/tdm/TdmChina',
    method: 'post',
    data: data
  })
}

// 修改-32中国天然产物化学成分库
export function updateTdmChina(data) {
  return request({
    url: '/tdm/TdmChina',
    method: 'put',
    data: data
  })
}

// 删除-32中国天然产物化学成分库
export function delTdmChina(id) {
  return request({
    url: '/tdm/TdmChina/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
